{{--/**
 * Created by PhpStrom
 * User: 郭碧云
 * Date: 2021/4/25 9:28
 * Desc: 修改密码
 */--}}
<style>
    .layui-form-switch {
        border-radius: 6px !important;
    }
</style>
<form action="{{session('guard')=='admin'?route('admin.user.change_store',["id"=>$user_id]):route('system.user.change_store',["id"=>$user_id])}}" id="edit_pwd_from" method="POST" style="margin-top: 15px;" class="layui-form">
    {{csrf_field()}}
    <input name="id" value="" style="display: none;"/>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
            <input type="password" id="password" name="password" autocomplete="off" placeholder="密码"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">重复密码</label>
        <div class="layui-input-block">
            <input type="password" id="password_confirmation" name="password_confirmation" autocomplete="off"
                   placeholder="重复密码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否修改密码</label>
        <div class="layui-input-block">
            <input type="checkbox" @if(getCurrentUser()['pwd_init']==1) checked="" @endif id="pwd_init" name="pwd_init" lay-skin="switch" lay-filter="switchInit"
                   lay-text="ON|OFF">
            <div class="layui-text layui-font-red" style="margin-top: 10px;color: red">(用户第一次登录时)</div>
        </div>
    </div>
</form>
